package com.qilu.careprogram.dao;

import com.qilu.careprogram.pojo.entity.ReturnVisitList;
import com.qilu.careprogram.pojo.vo.ReturnVisitVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @CreateTime: 2025-04-03  17:14
 * @Version: 1.0
 */
@Mapper
public interface ReturnVisitListDAO {
    void deleteByIds(@Param("ids") List<Long> ids);

    void insert(ReturnVisitList returnVisitList);

    int getPatientReVisitsCountToday();

    /**
     * 根据住院号获取该病人的回访记录，时间范围可选
     * @param hospitalNumber
     * @param startTime
     * @param endTime
     * @return
     */
    List<ReturnVisitList> getReturnVisitListByHospitalNumber(@Param("hospitalNumber") String hospitalNumber, @Param("startTime")Date startTime,  @Param("endTime") Date endTime);

    List<ReturnVisitVO> getReturnVisitVOs(@Param("hospitalNumber") String hospitalNumber,
                                          @Param("gender") String gender,
                                          @Param("idCard") String idCard,
                                          @Param("startTime") String startTime,
                                          @Param("endTime") String endTime);
}
